<script type="text/javascript" src="${base}/scripts/kcgl/rksh_ys.js"></script>
<div id="rksh_ys_tabs" class="easyui-tabs" fit="true">

    <div title="采购单" style="height: 100%;overflow-y: auto">

        <table style="width:98%;margin: 5px;" class="tb tab-t t-bor">
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <tr>
                <th style="">采购单号：</th>
                <td colspan="3" style="">${(rksh.cgdh)!}
                </td>

                <th style="">采购时间：</th>
                <td style="">${(rksh.cgsj?date)!}</td>
            </tr>
            <tr>
                <th style="">采购合同：</th>
                <td style="">${(rksh.cght.xshtbm)!}</td>

                <th style="">采购类型：</th>
                <td style="">
                <#if rksh?? && rksh.cglx?? && rksh.cglx=="cgrk" >采购入库<#else>
                    <#if rksh?? && rksh.cglx?? && rksh.cglx=="zddh" >
                        直达到货<#elseif rksh?? && rksh.cglx?? && rksh.cglx=="bght">
                        保供采购<#else>统配采购</#if>
                </#if>
                </td>

                <th style="">供应商：</th>
                <input type="hidden" id="rksh_gys_id" value="${(rksh.gys.id)!}"/>
                <td style="">${(rksh.gys.qc)!}</td>
            </tr>
        <#if (rksh.cglx)??&&rksh.cglx == "zddh">
            <tr>
                <th style="">销售合同：</th>
                <td style="">${(rksh.xsd.xsht.htbm)!}</td>

                <th style="">客户名称：</th>
                <td style="">${(rksh.xsd.kh.qc)!}</td>

                <th style="">工程名称：</th>
                <td style="">${(rksh.xsd.gc.mc)!}</td>
            </tr>
        </#if>
            <tr>
                <th style="">采购公司：</th>
                <td style="">${(rksh.cggs.qc)!}</td>

                <th style="">采购部门：</th>
                <td style="">${(rksh.cgbm.qc)!}</td>

                <th style="">采购人：</th>
                <td style="">${(rksh.cgr.xm)!}</td>
            </tr>
            <tr>
                <th style="">发货公司：</th>
                <td style=""><input id="rksh_fhgs_id" name="rksh.fhgs.id" type="text" value="${(rksh.fhgs.id)!}"
                                    class="input-text"/></td>
                <th style="">发货日期：</th>
                <td style="">${(rksh.fhrq?date)!}</td>
                <th style="">到货日期：</th>
                <td style="">${(rksh.jhdhrq?date)!}</td>
            </tr>
            <tr>

                <th style="">到货仓库：</th>
                <td style="">${(rksh.dzck.mc)!}</td>
                <th style="">承运单位：</th>
                <td style="">${(rksh.ysdw.qc)!}</td>
                <th style="">承运号：</th>
                <td style="">${(rksh.cyh)!}</td>
            </tr>
            <tr>
            <#--<th>车船号：</th>-->
            <#--<td>-->
            <#--&lt;#&ndash;<input id="cgd_cch_id" name="cgd.cch.id" type="text" value="${(xsd.kh.id)!}"&ndash;&gt;-->
            <#--&lt;#&ndash;class="input-text"/>&ndash;&gt;-->
            <#--</td>-->
                <th style="">联系电话：</th>
                <td colspan="3" style="">${(rksh.lxrdh)!}</td>
                <th style="">税率(%)：</th>
                <td style="">${(rksh.sl)!}</td>
            </tr>
            <tr>
                <th style="">备注：</th>
                <td colspan="5" style="">${(rksh.bz)!}</td>
            </tr>
        </table>
    </div>
    <div title="入库明细">
        <form id="rksh_ys_Form" method="post">
            <input name="rksh.id" type="hidden" value="${(rksh.id)!''}"/>
            <table id="rksh_ys_mx">
            </table>
            <div style="height:25px;width:100%;">
                <a href="#" class="easyui-linkbutton" id="btn_rkshMx_allSave_ys" data-options="iconCls:'icon-save2'"
                   style="float:right;margin-right:10px;">验收</a>
            </div>
        </form>
    </div>
</div>